<template>
  <div class="homeMindeOne">
    <div class="home-minone" @click="$router.push('/product')"> 
      <div class="home-minin" v-for="(item,index) in list" :key="index"><img :src="item.imgUrl" alt=""><span>{{item.name}}</span></div>
      <!-- <div class="home-minin"><img src="" alt=""><span>全球Go</span></div>
      <div class="home-minin"><img src="" alt=""><span>Go时尚</span></div>
      <div class="home-minin"><span>Go生鲜</span></div>
      <div class="home-minin"><span>Go到家</span></div>
      <div class="home-minin"><span>充值缴费</span></div>
      <div class="home-minin"><span>9.9元拼</span></div>
      <div class="home-minin"><span>领卷</span></div>
      <div class="home-minin"><span>省钱</span></div>
      <div class="home-minin"><span>全部</span></div> -->
  </div>
  </div>
</template>

<script>
import {getcount} from 'vuex'
export default {
  created(){
    this.getcategory()
    // console.log(this);
  },
  data(){
    return{
      list:[]
    }
  },
  methods:{
    async getcategory(){
      const res= await this.$require({
        url:'home/category',
        method:'get'
      })
      if(res.status==200){
        this.list=res.data.data
        // console.log(this.list);
      }
    },
    getcount(){
      console.log(count);
    }
  }
}

</script>

<style lang="scss" scoped>
* {
  padding: 0;
  margin: 0;
}
.homeMindeOne {
  width: 100%;
  height: 181.16px;
  padding: 0 0 14.36px;
  background-color: #fff;
}
 .home-minin{
  width: 73px;
  height: 83px;
  // border: 1px solid black;
  float: left;
}
.home-minone{
  width: 375px;
  span{
    display: block;
    width: 75px;
    font-size:12px;
    color: #000;
    line-height: 100%;
    text-align: center;
  }
  img{
    width: 40px;
    margin: 13px 17px 8px;
  }
}
</style>